package com.api.syh56.shengyunhui.entity.common;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.DefaultValue;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("zjxl_trace")
public class ZjxlTrace {

    @Column(name = "id",isKey = true,isAutoIncrement = true,comment = "id")
    Long id;


    @Column(name = "waybill_id",comment = "运单id")
    Long waybillId;


    /**
     * 类型
     */
    @Column(name = "type",comment = "类型")
    Short type;

    /**
     * 车牌号
     */
    @Column(name = "car_num",comment = "车牌号")
    String carNum;

    @Column(name = "qry_btm",comment = "查询开始时间")
    private String qryBtm;

    @Column(name = "qry_etm",comment = "查询结束时间")
    private String qryEtm;

    /**
     * json
     */
    @Column(name = "json",type = MySqlTypeConstant.LONGTEXT,comment = "文本")
    String json;




    /**
     * 创建时间
     */
    @Column(name = "creation_time")
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime creationTime;

    /**
     * 更新时间
     */
    @Column(name = "last_modification_time")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastModificationTime;

    @TableLogic
    @Column(name = "is_deleted")
    @DefaultValue("false")
    private Boolean isDeleted;

}
